-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate more OpenTelemetry resource conventions #4955
Conversation
Translate more OpenTelemetry resource conventions, focusing on common conventions ones which already have a clear mapping to our data model. Add fields to metadata model types for missing ECS fields.
cf62e63
to
bdaebf3
Compare
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
Update modeldecodertest.SetStructValues with options which enable a caller to override the value to which a field is set. This is used to initialise fields which have no equivalent in the input model.
"hostname": System{DetectedHostname: detected}, | ||
"ignored hostname": System{ConfiguredHostname: configured}, | ||
"full hostname info": System{DetectedHostname: detected, ConfiguredHostname: configured}, | ||
"k8s nodename with hostname": System{Kubernetes: Kubernetes{NodeName: nodename}, DetectedHostname: detected}, | ||
"k8s nodename with configured hostname": System{Kubernetes: Kubernetes{NodeName: nodename}, ConfiguredHostname: configured}, | ||
"k8s podname": System{Kubernetes: Kubernetes{PodName: podname}, DetectedHostname: detected}, | ||
"k8s podUID": System{Kubernetes: Kubernetes{PodUID: podUID}, DetectedHostname: detected}, | ||
"k8s namespace": System{Kubernetes: Kubernetes{Namespace: namespace}, DetectedHostname: detected}, | ||
"k8s podname with configured hostname": System{Kubernetes: Kubernetes{PodName: podname}, DetectedHostname: detected, ConfiguredHostname: configured}, | ||
"k8s podUID with configured hostname": System{Kubernetes: Kubernetes{PodUID: podUID}, DetectedHostname: detected, ConfiguredHostname: configured}, | ||
"k8s namespace with configured hostname": System{Kubernetes: Kubernetes{Namespace: namespace}, DetectedHostname: detected, ConfiguredHostname: configured}, | ||
"k8s empty": System{Kubernetes: Kubernetes{}, DetectedHostname: detected, ConfiguredHostname: configured}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kubernetes is generally covered by kubernetes_test.go, and the logic for setting host.hostname
for events with kubernetes metadata is covered by the modeprocessor. The tests are redundant now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
Codecov Report
@@ Coverage Diff @@
## master #4955 +/- ##
==========================================
+ Coverage 76.98% 77.21% +0.22%
==========================================
Files 175 175
Lines 10354 10413 +59
==========================================
+ Hits 7971 8040 +69
+ Misses 2383 2373 -10
|
* Translate more OpenTelemetry resource conventions Translate more OpenTelemetry resource conventions, focusing on common conventions ones which already have a clear mapping to our data model. Add fields to metadata model types for missing ECS fields. * model/modeldecoder: fix tests due to added fields Update modeldecodertest.SetStructValues with options which enable a caller to override the value to which a field is set. This is used to initialise fields which have no equivalent in the input model. # Conflicts: # changelogs/head.asciidoc
* Translate more OpenTelemetry resource conventions Translate more OpenTelemetry resource conventions, focusing on common conventions ones which already have a clear mapping to our data model. Add fields to metadata model types for missing ECS fields. * model/modeldecoder: fix tests due to added fields Update modeldecodertest.SetStructValues with options which enable a caller to override the value to which a field is set. This is used to initialise fields which have no equivalent in the input model. # Conflicts: # changelogs/head.asciidoc
* Translate more OpenTelemetry resource conventions Translate more OpenTelemetry resource conventions, focusing on common conventions ones which already have a clear mapping to our data model. Add fields to metadata model types for missing ECS fields. * model/modeldecoder: fix tests due to added fields Update modeldecodertest.SetStructValues with options which enable a caller to override the value to which a field is set. This is used to initialise fields which have no equivalent in the input model. (cherry picked from commit 1b1e79d) # Conflicts: # changelogs/head.asciidoc # model/modeldecoder/v2/metadata_test.go
Motivation/summary
Translate more OpenTelemetry resource conventions, focusing on common conventions which already have a clear mapping to our data model. Add fields to metadata model types for missing ECS fields.
Checklist
How to test these changes
Related issues
#4714